##############################################################################
#
# lhc module for OpenERP, Customize OpenERP for L'Heureux Cyclage Copyright
-# (C) 2013-2017 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
+# (C) 2013-2020 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
#
# This file is a part of lhc_custom_oe
#
##############################################################################
#
# lhc module for OpenERP, Customize OpenERP for L'Heureux Cyclage Copyright
-# (C) 2013-2017 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
+# (C) 2013-2020 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
#
# This file is a part of lhc_custom_oe
#
msgstr ""
"Project-Id-Version: OpenERP Server 6.0.4\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-04-17 10:50+0000\n"
-"PO-Revision-Date: 2020-04-17 12:51+0200\n"
+"POT-Creation-Date: 2020-05-18 09:01+0000\n"
+"PO-Revision-Date: 2020-05-18 11:04+0200\n"
"Last-Translator: Ludovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Poedit 2.3\n"
+"X-Generator: Poedit 2.3.1\n"
+
+#. module: lhc
+#: view:account.invoice:0
+msgid "Unsent"
+msgstr "Non envoyée"
#. module: lhc
#: view:res.partner:0
"Cyclage. Ce champ permet de discriminer des contacts pour différents usages."
#. module: lhc
-#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
-msgid "Rencontres 2016"
-msgstr "Rencontres 2016"
+#: model:ir.model,name:lhc.model_res_users
+msgid "res.users"
+msgstr "res.users"
+
+#. module: lhc
+#: selection:event.registration,gender:0
+msgid "Other"
+msgstr "Autre"
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "OPCO"
+msgstr "OPCO"
+
+#. module: lhc
+#: selection:event.registration,position:0
+msgid "Employee"
+msgstr "Salarié·e"
#. module: lhc
#: view:res.partner:0
msgstr "Organisation des rencontres"
#. module: lhc
-#: field:res.partner,usual_contact:0
-msgid "Usual contact"
-msgstr "Contact fréquent"
+#: selection:event.registration,funding_main:0
+msgid "Company"
+msgstr "Structure"
+
+#. module: lhc
+#: help:event.registration,funding_main:0
+msgid "Main funding origin"
+msgstr "Source de financement principale"
+
+#. module: lhc
+#: model:ir.model,name:lhc.model_event_registration
+msgid "Event Registration"
+msgstr "Inscriptions"
+
+#. module: lhc
+#: model:ir.module.category,description:lhc.module_category_lhc
+msgid "Customize OpenERP for L'Heureux Cyclage usages."
+msgstr "Personnalisation d'OpenERP pour les besoins de L'Heureux Cyclage."
#. module: lhc
#: model:ir.actions.act_window,name:lhc.act_open_rencontres_2016_project_view
msgstr "Projets"
#. module: lhc
+#: selection:event.registration,position:0
#: model:res.groups,name:lhc.group_volunteer
msgid "Volunteer"
msgstr "Bénévole"
msgid "Customer"
msgstr "Client"
+#. module: lhc
+#: field:event.registration,funding_main:0
+msgid "Main funding"
+msgstr "Financement principal"
+
+#. module: lhc
+#: field:res.partner,usual_contact:0
+msgid "Usual contact"
+msgstr "Contact fréquent"
+
+#. module: lhc
+#: field:event.registration,gender:0
+msgid "Gender"
+msgstr "Genre"
+
#. module: lhc
#: model:res.groups,name:lhc.group_ca
msgid "Administration board members"
msgid "Product Template"
msgstr "Modèle de produit"
-#. module: lhc
-#: view:hr.expense.expense:0
-msgid "Move number"
-msgstr "Numéro de pièce comptable"
-
#. module: lhc
#: view:account.invoice:0
msgid "Sent by Email"
msgstr "Partenaire"
#. module: lhc
-#: model:ir.module.category,description:lhc.module_category_lhc
-msgid "Customize OpenERP for L'Heureux Cyclage usages."
-msgstr "Personnalisation d'OpenERP pour les besoins de L'Heureux Cyclage."
+#: field:event.registration,position:0
+msgid "Position"
+msgstr "Statut"
+
+#. module: lhc
+#: selection:event.registration,gender:0
+msgid "Male"
+msgstr "Homme"
+
+#. module: lhc
+#: field:event.registration,fundings_others:0
+msgid "Others fundings origins"
+msgstr "Autres sources de financement"
#. module: lhc
#: model:ir.module.category,name:lhc.module_category_lhc
msgstr "L'Heureux Cyclage"
#. module: lhc
-#: view:account.invoice:0
-msgid "Unsent"
-msgstr "Non envoyée"
+#: selection:event.registration,position:0
+msgid "Invividual"
+msgstr "Individuel·le"
+
+#. module: lhc
+#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
+msgid "Rencontres 2016"
+msgstr "Rencontres 2016"
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "Individual"
+msgstr "Personnel"
#. module: lhc
#: model:res.groups,name:lhc.group_employee_lhc
msgstr "Employé·e·s de L'Heureux Cyclage"
#. module: lhc
-#: model:ir.model,name:lhc.model_res_users
-msgid "res.users"
-msgstr "res.users"
+#: selection:event.registration,gender:0
+msgid "Female"
+msgstr "Femme"
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "Pole Emploi"
+msgstr "Pôle Emploi"
+
+#. module: lhc
+#: view:hr.expense.expense:0
+msgid "Move number"
+msgstr "Numéro de pièce comptable"
#. module: lhc
#: view:res.partner:0
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-04-17 10:50+0000\n"
-"PO-Revision-Date: 2020-04-17 10:50+0000\n"
+"POT-Creation-Date: 2020-05-18 09:01+0000\n"
+"PO-Revision-Date: 2020-05-18 09:01+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: lhc
+#: view:account.invoice:0
+msgid "Unsent"
+msgstr ""
+
#. module: lhc
#: view:res.partner:0
msgid "All Companies Members"
msgstr ""
#. module: lhc
-#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
-msgid "Rencontres 2016"
+#: model:ir.model,name:lhc.model_res_users
+msgid "res.users"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,gender:0
+msgid "Other"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "OPCO"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,position:0
+msgid "Employee"
msgstr ""
#. module: lhc
msgstr ""
#. module: lhc
-#: field:res.partner,usual_contact:0
-msgid "Usual contact"
+#: selection:event.registration,funding_main:0
+msgid "Company"
+msgstr ""
+
+#. module: lhc
+#: help:event.registration,funding_main:0
+msgid "Main funding origin"
+msgstr ""
+
+#. module: lhc
+#: model:ir.model,name:lhc.model_event_registration
+msgid "Event Registration"
+msgstr ""
+
+#. module: lhc
+#: model:ir.module.category,description:lhc.module_category_lhc
+msgid "Customize OpenERP for L'Heureux Cyclage usages."
msgstr ""
#. module: lhc
msgstr ""
#. module: lhc
+#: selection:event.registration,position:0
#: model:res.groups,name:lhc.group_volunteer
msgid "Volunteer"
msgstr ""
msgid "Customer"
msgstr ""
+#. module: lhc
+#: field:event.registration,funding_main:0
+msgid "Main funding"
+msgstr ""
+
+#. module: lhc
+#: field:res.partner,usual_contact:0
+msgid "Usual contact"
+msgstr ""
+
+#. module: lhc
+#: field:event.registration,gender:0
+msgid "Gender"
+msgstr ""
+
#. module: lhc
#: model:res.groups,name:lhc.group_ca
msgid "Administration board members"
msgid "Product Template"
msgstr ""
-#. module: lhc
-#: view:hr.expense.expense:0
-msgid "Move number"
-msgstr ""
-
#. module: lhc
#: view:account.invoice:0
msgid "Sent by Email"
msgstr ""
#. module: lhc
-#: model:ir.module.category,description:lhc.module_category_lhc
-msgid "Customize OpenERP for L'Heureux Cyclage usages."
+#: field:event.registration,position:0
+msgid "Position"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,gender:0
+msgid "Male"
+msgstr ""
+
+#. module: lhc
+#: field:event.registration,fundings_others:0
+msgid "Others fundings origins"
msgstr ""
#. module: lhc
msgstr ""
#. module: lhc
-#: view:account.invoice:0
-msgid "Unsent"
+#: selection:event.registration,position:0
+msgid "Invividual"
+msgstr ""
+
+#. module: lhc
+#: model:ir.ui.menu,name:lhc.menu_rencontres_2016
+msgid "Rencontres 2016"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "Individual"
msgstr ""
#. module: lhc
msgstr ""
#. module: lhc
-#: model:ir.model,name:lhc.model_res_users
-msgid "res.users"
+#: selection:event.registration,gender:0
+msgid "Female"
+msgstr ""
+
+#. module: lhc
+#: selection:event.registration,funding_main:0
+msgid "Pole Emploi"
+msgstr ""
+
+#. module: lhc
+#: view:hr.expense.expense:0
+msgid "Move number"
msgstr ""
#. module: lhc
##############################################################################
#
# lhc module for OpenERP, Customize OpenERP for L'Heureux Cyclage Copyright
-# (C) 2013-2017 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
+# (C) 2013-2020 L'Heureux Cyclage (<http://www.heureux-cyclage.org>)
#
# This file is a part of lhc_custom_oe
#
from openerp.osv import osv
from openerp.osv import orm
from openerp.osv import fields
-
import openerp.addons.decimal_precision as dp
+
class res_partner(orm.Model):
_inherit = 'res.partner'
'kit_sent': lambda *a: False,
}
+
class product_template(orm.Model):
_inherit = 'product.template'
'standard_price': fields.float('Cost', digits_compute=dp.get_precision('Product Price'), help="Cost price of the product used for standard stock valuation in accounting and used as a base price on purchase orders.", groups="base.group_user,lhc.group_volunteer"),
}
+
class res_users(orm.Model):
_inherit = 'res.users'
v = {}
return {'value': v}
+
+class event_registration(orm.Model):
+ _inherit = 'event.registration'
+
+ _columns = {
+ 'gender': fields.selection([
+ ('female', 'Female'),
+ ('male', 'Male'),
+ ('other', 'Other')],
+ 'Gender'),
+ 'position': fields.selection([
+ ('employee', 'Employee'),
+ ('individual', 'Invividual'),
+ ('volunteer', 'Volunteer')],
+ 'Position'),
+ 'funding_main': fields.selection([
+ ('individual', 'Individual'),
+ ('opco', 'OPCO'),
+ ('company', 'Company'),
+ ('pole_emploi', 'Pole Emploi')],
+ 'Main funding', help='Main funding origin'),
+ 'fundings_others': fields.char('Others fundings origins', size=128),
+ }
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
<record id="event.act_event_list_register_event" model="ir.actions.act_window">
<field name="view_mode">tree,form,graph</field>
</record>
+ <record id="view_event_registration_form" model="ir.ui.view">
+ <field name="name">event.registration.form</field>
+ <field name="model">event.registration</field>
+ <field name="inherit_id" ref="event.view_event_registration_form"/>
+ <field name="priority" eval="8"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='user_id']/.." position="after">
+ <group colspan="4">
+ <group>
+ <field name="gender"/>
+ <field name="position"/>
+ </group>
+ <group>
+ <field name="funding_main"/>
+ <field name="fundings_others"/>
+ </group>
+ </group>
+ </xpath>
+ </field>
+ </record>
</data>
</openerp>